<!-- $msglist AS $key=>$value -->
<div class="chain_part" onclick="chain_add('{:$value[id]}','{:$value[folder]}{:$value[thumbfile]}','{:$value[subject]}')">
  <div class="bor">
    <div class="pad">
      <div class="pic">
      <!-- if($value[folder] && file_exists($value[folder].$value[filename])) -->
      <img class="imgchain" src="{:$value[folder]}{:$value[thumbfile]}" title="{:$value[subject]}" alt="{:$value[subject]}" />
      <!-- else -->
      <img class="imgchain" src="images/noimage.png" />
      <!-- end -->
      </div>
      <div class="tit">{:$value[subject]}</div>
    </div>
  </div>
</div>
<!-- end -->
<div class="clear"></div>